import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const system = {
  path: '/device',
  name: 'Device',
  component: LAYOUT,
  redirect: '/device/list',
  meta: {
    orderNo: 2000,
    icon: 'ion:settings-outline',
    title: '设备管理',
  },
  children: [
    {
      path: 'list',
      name: 'DeviceList',
      meta: {
        title: '设备管理',
        ignoreKeepAlive: false,
      },
      component: () => import('@/views/device/list/List.vue'),
    },
    {
      path: 'data',
      name: 'DeviceData',
      meta: {
        title: '数据管理',
        ignoreKeepAlive: true,
      },
      component: () => import('@/views/device/data/List.vue'),
    },
    {
      path: 'group',
      name: 'AdminGroup',
      meta: {
        title: '权限组',
        ignoreKeepAlive: true,
      },
      component: () => import('@/views/system/role/index.vue'),
    },
  ],
};

export default system;
